import axios from '../../../../http/index'

// 主要数据展示请求
export const rcDataShow = () =>
    axios({
        method: "POST",
        url: '/system/rcmanagement/accessrule/findRuleList',
        data: {
            currentPage: '1',
            // 每页条数
            pageSize: '90',
        }
    })

// 添加
export const addRcData = (data) =>
    axios({
        method: "POST",
        url: "/system/rcmanagement/accessrule/addRule",
        data
    })


// 批量删除
export const batchDelData = (arrayId) =>
    axios({
        method: "POST",
        url: "/system/rcmanagement/accessrule/delbatchRuleById",
        data: {
            ids: arrayId
        }
    })


// 单项删除
export const singleDelData = (arrayId) =>
    axios({
        method: "POST",
        url: "/system/rcmanagement/accessrule/delRule",
        data: {
            id: arrayId
        }
    })


// 上下线状态改变
export const changeStateReq = (data) => 
axios({
    method: "POST",
    url: '/system/rcmanagement/accessrule/updateUseState',
    data,
})